#include "Arena.h"

Arena::Arena()
{
	_charId = 0;
	_rankId = 0;
}

Arena::~Arena()
{

}

void Arena::Init(ArenaDBInfo& arenaInfo)
{
	_charId = arenaInfo.charid();
	_rankId = arenaInfo.rankid();
}

void Arena::SaveData(ArenaDBInfo& arenaInfo)
{
	arenaInfo.set_charid(_charId);
	arenaInfo.set_rankid(_rankId);
}

CharIDType Arena::GetCharId()
{
	return _charId;
}

uint32_t Arena::GetRankId()
{
	return _rankId;
}

void Arena::SetData(CharIDType charId, uint32_t rankId)
{
	_charId = charId;
	_rankId = rankId;
}

void Arena::Clean()
{
	_charId = 0;
	_rankId = 0;
}